home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CICA 1993 April
/
CICA MS Windows - April 1993.iso
/
unzipped
/
misc
/
iv26_w30
/
intervie
/
itable.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-25
|
853b
|
42 lines
/*
* Object association table.
*/
#ifndef InteractorTable_h
#define InteractorTable_h
#include <InterViews\table.h>
class Interactor;
class InteractorTableEntry;
class InteractorTable : public Table {
public:
InteractorTable(int);
void Insert(void*, class Interactor*);
boolean Find(class Interactor*&, void*);
void Remove(void*);
};
inline InteractorTable::InteractorTable (int n) : Table (n) {}
inline void InteractorTable::Insert (void* k, class Interactor* v) {
Table::Insert((void*)k, (void*)v);
}
inline boolean InteractorTable::Find (class Interactor*& v, void* k) {
void* vv;
boolean b = Table::Find(vv, (void*)k);
if (b) {
v = (class Interactor*)vv;
}
return b;
}
inline void InteractorTable::Remove (void* k) {
Table::Remove((void*)k);
}
#endif